package com.myapp.msg.define;

import com.myapp.Logical.interfaces.ILogical;
import com.myapp.msg.base.BaseMsg;
import com.myapp.msg.type.MsgPermission;

public class MsgConfigBean {

	// 消息id
	private short id;

	// 消息名字
	private String name;

	// 消息所属类型
	private MsgPermission permission;

	// 业务类
	private Class<? extends ILogical> logicalClass;

	// 消息类
	private Class<? extends BaseMsg> msgClass;

	// 是否启用
	private boolean canUse = true;

	public short getId() {
		return id;
	}

	public void setId(short id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public MsgPermission getPermission() {
		return permission;
	}

	public void setPermission(MsgPermission permission) {
		this.permission = permission;
	}

	public Class<? extends ILogical> getLogicalClass() {
		return logicalClass;
	}

	public void setLogicalClass(Class<? extends ILogical> logicalClass) {
		this.logicalClass = logicalClass;
	}

	public boolean isCanUse() {
		return canUse;
	}

	public void setCanUse(boolean canUse) {
		this.canUse = canUse;
	}

	public Class<? extends BaseMsg> getMsgClass() {
		return msgClass;
	}

	public void setMsgClass(Class<? extends BaseMsg> msgClass) {
		this.msgClass = msgClass;
	}

}
